import request from '@/utils/request'

export function login() {
  return request({
    url: 'http://localhost:9528/login.json',
    method: 'get',
  })
}

export function getInfo(data) {
  return request({
    url: 'http://localhost:9528/data.json',
    method: 'get',
    params: data
  })
}

export function logout(data) {
  return request({
    url: 'http://localhost:9528/logout.json',
    method: 'get',
    params: data
  })
}
